package org.example.serviceoffice.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.example.model.manage.bean.po.Counselor;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * 辅导员表 Mapper 接口
 * </p>
 *
 * @author author
 * @since 2025-08-14
 */
@Mapper
public interface CounselorMapper extends BaseMapper<Counselor> {

    /**
     * 根据ID查询辅导员
     * @param id 辅导员ID
     * @return 辅导员信息
     */
    Counselor selectById(Integer id);

    /**
     * 插入辅导员信息
     * @param counselor 辅导员信息
     * @return 插入结果
     */
    int insertCounselor(Counselor counselor);

    /**
     * 根据ID删除辅导员
     * @param id 辅导员ID
     * @return 删除结果
     */
    int deleteCounselorById(@Param("id") Integer id);

}